Skip to content

Conversation

AliQassab
Copy link

@AliQassab AliQassab commented Oct 18, 2025

Learners, PR Template

Self checklist

  • I have titled my PR with Region | Cohort | FirstName LastName | Sprint | Assignment Title
  • My changes meet the requirements of the task
  • I have tested my changes
  • My changes follow the style guide

Changelist

Added memoization caching to improve performance:

  • Fibonacci: Added global cache to avoid O(2^n) recursive calls → O(n) time complexity
  • Making Change: Added cache for (total, coins) combinations to avoid redundant calculations
    Both functions now run significantly faster while maintaining correct results.

Questions

Ready for review! All tests pass.

@AliQassab AliQassab added Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. Module-Complexity The name of the module. labels Oct 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Module-Complexity The name of the module. Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant